<?php
/**
 * This file is responsible for downloading content and send it on.
 */
class Articles_Controller
{
    /**
     * This variable will be stored template name
     */
    public $template = 'articles';

    /**
     * This is a sample function, which is to receive data from the runner
     * 
     * @param array $getVariables $ _GET array values ​​sent by the index.php file
     */
    public function main(array $getVariables)
    {
        //this is a test , and we will be removing it later
        print "I'm the articles controller!";
        print '<br/>';
        $vars = print_r($getVariables, TRUE);
        print 
        (
            "The controller received from index.php following values:" .
            "<pre>".$vars."</pre>"
        );
    }
}